package com.xxx.blog.base.service;

import com.xxx.blog.base.domain.SysUser;
import com.xxx.blog.base.domain.SysUserToken;

import java.util.Set;

/*******************************************************************************
 * Project: blog-base
 * Package: com.xxx.blog.base.service
 * Type:    ShiroService
 * Author:  ChenXuefei
 * Date:    2017/12/12 11:27
 *
 * Copyright (c) 2017 AFCATSTAR. All Rights Reserved.
 *******************************************************************************/
public interface ShiroService {
    /**
     * 得到用户权限列表
     * @param userId
     * @return
     */
    Set<String> getUserPermissions(Long userId);
    
    /**
     * 查询用户token
     * @param accessToken
     * @return
     */
    SysUserToken queryByToken(String accessToken);
    
    /**
     * 查询用户信息
     * @param userId
     * @return
     */
    SysUser queryUser(Long userId);
}
